package top.ruanlitao.shortlink.project.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 使用 Sentinel 进行风控配置的最大 QPS
 */
@Data
@Component
@ConfigurationProperties(prefix = "short-link.flow-limit")
public class SentinelRuleCountConfiguration {

    /**
     * 创建短链接接口风控 qps
     */
    private Double createShortLinkQps;

    /**
     * 短链接跳转接口风控 qps
     */
    private Double gotoShortLinkQps;
}